﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
using WoChu.RfClient.Login;
using System.Diagnostics;

namespace WoChu.RfClient.Entry
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [MTAThread]
        static void Main()
        {
            //bool ExisFlag = false;
            //Process currentProccess = Process.GetCurrentProcess();
            //Process[] currentProccessArray = Process.GetProcesses();
            //foreach (Process p in currentProccessArray)
            //{
            //    if (p.ProcessName == currentProccess.ProcessName && p.Id != currentProccess.Id)
            //    {
            //        ExisFlag = true;
            //    }
            //}

            //if (ExisFlag)
            //{
            //    MessageBox.Show("程序已运行！");
            //    return;
            //}
            //else
            //{
            //    Application.Run(new FrmLogin());
            //}
            Application.Run(new FrmLogin());
        }
    }
}